
<template>
    <van-nav-bar :title="route.meta.title" left-arrow @click-left="router.replace('/user')" fixed placeholder>
        <template #right >
            <van-icon name="add-o" size="18" @click="addArticle"/>
        </template>
    </van-nav-bar>
    <ArticleList class="list" :apifn="getArticleList" :params="{ page: 1, limit: 10 }" />
     <van-back-top right="20px" bottom="60px" />
</template>
    
<script setup>
import { useRoute, useRouter } from 'vue-router';
import {getArticleList} from '@/api/article.js'
const route = useRoute()
const router = useRouter();
let addArticle=()=>{
    router.push('/addArticle')
}

</script>
    
<style lang="scss" scoped>
.list {
  margin: 10px;
}</style>